package stream;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @author： pang-yun
 * @date： 2021-10-27 13:18
 * 功能目的 ：用于
 */

public class MapTest {
    public static void main(String[] args) {
        List<String> strings = Arrays.asList("aaa", "bbb", "ccc");
       // strings.stream().map(String::toUpperCase).forEach(System.out::println);

        List<Integer> integers = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 5);
        Map<Boolean, List<Integer>> collect = integers.stream().collect(Collectors.partitioningBy(x -> x > 5));

    }
}
